import request from '@/hooks/request'

const Api = {
  getWechatReplyList: '/platform/wechatReply/getWechatReplyList', // 自动回复列表
  wechatReplyPushArriveRobots: '/platform/wechatReply/wechatReplyPushArriveRobots', // 推送
  getFishReplyList: '/platform/fishReply/getFishReplyList', // 自动回复列表
  fishReplyPushArriveRobots: '/platform/fishReply/fishReplyPushArriveRobots', // 推送
}

export const getWechatReplyList = (parameter: Record<any, any>) => {
  const formData = new FormData()
  formData.append('robotId', parameter.robotId)
  return request({
    method: 'post',
    url: Api.getWechatReplyList,
    data: formData,
  })
}

export const wechatReplyPushArriveRobots = (parameter: Record<any, any>) => {
  return request({
    method: 'post',
    url: Api.wechatReplyPushArriveRobots,
    data: parameter,
  })
}

export const getFishReplyList = (parameter: Record<any, any>) => {
  const formData = new FormData()
  formData.append('robotId', parameter.robotId)
  return request({
    method: 'post',
    url: Api.getFishReplyList,
    data: formData,
  })
}

export const fishReplyPushArriveRobots = (parameter: Record<any, any>) => {
  return request({
    method: 'post',
    url: Api.fishReplyPushArriveRobots,
    data: parameter,
  })
}
